/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.citi.dahg.cve.controller.service;

import java.util.List;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author dh90940
 */
public interface Service<T> {    
    
    @Transactional
    void add(T obj);
    @Transactional
    void update(T obj);
    @Transactional
    void delete(T obj);
    @Transactional
    List<T> getAll();
    @Transactional
    T findById(Object id);
}
